import axios from "@/http/http.js";
// 封装添加订单信息接口
export const ordersAddAPI = (data) => {
    return axios({
        url: '/orders/add',
        method: 'post',
        data
    })
};

// 封装修改订单状态接口
export const ordersStatusUpdateAPI = (data) => {
    return axios({
        url: '/orders/update',
        method: 'post',
        data,
        headers: { "content-type": "application/x-www-form-urlencoded" }
    })
};